<?php
/* @var $this ProfileController */
/* @var $model Profile */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'profile-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Lastname'); ?>
		<?php echo $form->textField($model,'Lastname',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'Lastname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Firstname'); ?>
		<?php echo $form->textField($model,'Firstname',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'Firstname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Middlename'); ?>
		<?php echo $form->textField($model,'Middlename',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'Middlename'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Religion'); ?>
		<?php echo $form->textField($model,'Religion',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'Religion'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Sex'); ?>
		<?php echo $form->textField($model,'Sex'); ?>
		<?php echo $form->error($model,'Sex'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DateOfBirth'); ?>
		<?php echo $form->textField($model,'DateOfBirth'); ?>
		<?php echo $form->error($model,'DateOfBirth'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PlaceOfBirth'); ?>
		<?php echo $form->textField($model,'PlaceOfBirth',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'PlaceOfBirth'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Address'); ?>
		<?php echo $form->textField($model,'Address',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'Address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ContactNumber'); ?>
		<?php echo $form->textField($model,'ContactNumber',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'ContactNumber'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Email'); ?>
		<?php echo $form->textField($model,'Email',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'FuturePlan'); ?>
		<?php echo $form->textArea($model,'FuturePlan',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'FuturePlan'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DateCreated'); ?>
		<?php echo $form->textField($model,'DateCreated'); ?>
		<?php echo $form->error($model,'DateCreated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DateUpdate'); ?>
		<?php echo $form->textField($model,'DateUpdate'); ?>
		<?php echo $form->error($model,'DateUpdate'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->